import request from '@/utils/request'

export function adminSearch(data) {
    return request({
        url: '/admin/search',
        method: 'post',
        data
    });
}

export function adminInsert(data) {
    return request({
        url: '/admin/insert',
        method: 'post',
        data
    });
}

export function adminUpdate(data) {
    return request({
        url: '/admin/updateSelective',
        method: 'post',
        data
    });
}

export function adminDeletes(data) {
    return request({
        url: '/admin/deleteIds',
        method: 'post',
        data
    });
}

export function adminRePwd(data) {
    return request({
        url: '/admin/AdminEditPassword',
        method: 'post',
        data
    });
}

export function adminUpdatePassword(data) {
    return request({
        url: '/admin/updatePassword',
        method: 'post',
        data
    });
}
